<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>

<div id="examPlanGrid"></div>
<div id="examPlanToolbar">
	<div>
		<a href="#" class="easyui-linkbutton" onclick="examPlan.examPlanToolbar.showAddDialog();" data-options="
		iconCls:'icon-add',
		plain:true">
			新增
		</a>
		<a href="#" id="updateButton" class="easyui-linkbutton" onclick="examPlan.examPlanToolbar.showUpdateDialog();" data-options="
		iconCls:'icon-edit',
		plain:true">
			修改
		</a>
		<a href="#" id="deleteButton" class="easyui-linkbutton" onclick="examPlan.examPlanToolbar.remove();" data-options="
		iconCls:'icon-remove',
		plain:true">
			删除
		</a>
		<a href="#" id="openButton" class="easyui-linkbutton" onclick="examPlan.examPlanToolbar.open();" data-options="
		iconCls:'icon-lock-open',
		plain:true">
			启用
		</a>
		<a href="#" class="easyui-linkbutton" onclick="examPlan.examPlanToolbar.redo();" data-options="
		iconCls:'icon-redo',
		plain:true">
			取消
		</a>
		<a href="#" class="easyui-linkbutton" onclick="examPlan.examPlanToolbar.paper();" data-options="
		iconCls:'icon-redo',
		plain:true">
			自动生成试卷
		</a>
	</div>
	<div>
		<strong>类型：</strong>
		<select id="examPlanType" class="easyui-combobox" style="width:100px" data-options="editable:false">
			<option value="1">我所新增</option>
			<option value="2">其他新增</option>
		</select>
		
		<strong>状态：</strong>
		<select class="easyui-combobox" id="examPlanState" style="width:100px" data-options="editable:false">
			<option value="">全部</option>
			<option value="1">启用</option>
			<option value="2">待启用</option>
			<option value="3">已删除</option>
		</select>
		
		<strong>是否过期：</strong>
		<select id="examPlanExpire" class="easyui-combobox" style="width:100px" data-options="editable:false">
			<option value="">全部</option>
			<option value="1">否</option>
			<option value="2">是</option>
		</select>
		<a href="#" onclick="examPlan.examPlanToolbar.examPlanSearch();" class="easyui-linkbutton" data-options="
		iconCls:'icon-search',
		plain:true">
			查询
		</a>
	</div>
</div>

<div id="examPlanAddDialog" class="easyui-dialog ec-dialog" data-options="
title:'新增考试计划',
buttons:'#examPlanAddButtons',
iconCls:'icon-man',
plain:true,
closed: true,
onClose:examPlan.examPlanToolbar.resetAddForm">
	<form id="examPlanAddForm" method="post">
		<p>
			<strong>开始时间：</strong>
			<input class="easyui-datetimebox" name="examTimeStart" data-options="
			required:true,
			showSeconds:false" 
			>
			
		</p>	
		<p>
			<strong>结束时间：</strong>
			<input class="easyui-datetimebox" name="examTimeStop" data-options="
			required:true,
			showSeconds:false" 
			>
			
		</p>
		<p>
			<strong>考试教室：</strong>
			<input type="text" name="examClassroom" class="easyui-textbox" data-options="
			required:true"/>
		</p>
		<p>
			<strong>试卷名称：</strong>
			<input id="examPaperNameAdd" name="examPaperName"/>
		</p>
		<p>
			<strong>接收人员：</strong>
			<input id="examPlanToUserAdd" name="examPlanToUser"/>
		</p>
		<p>
			<strong>接收班级：</strong>
			<input id="examPlanToClassAdd" name="examPlanToClass" />
		</p>
		<p>
			<strong>状&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;态：</strong>
			<select class="easyui-combobox" name="examPlanState" style="width:150px" data-options="editable:false">
				<option value="1">启用</option>
				<option value="2">待启用</option>
			</select>
		</p>
		<p>
			<strong>备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注：</strong>
			<input class="easyui-textbox" id="examPlanMemo" name="examPlanMemo" style="width:150px" data-options="multiline:true"/>
		</p>
		
	</form>
</div>
<div id="examPlanAddButtons">
	<a href="#" onclick="examPlan.examPlanToolbar.add()" class="easyui-linkbutton" data-options="
	iconCls: 'icon-add',
	plain: true">
		新增
	</a>
	<a href="#" onclick="examPlan.examPlanToolbar.hiddenAddDialog();" class="easyui-linkbutton" data-options="
	iconCls: 'icon-redo',
	plain: true">
		取消
	</a>
</div>

<div id="examPlanUpdateDialog" class="easyui-dialog ec-dialog" data-options="
title:'修改考试计划',
buttons:'#examPlanUpdateButtons',
iconCls:'icon-edit',
plain:true,
closed: true,
onClose:examPlan.examPlanToolbar.resetUpdateForm()">
	<form id="examPlanUpdateForm" method="post">
	<input type="hidden" name="id">
		<p>
			<strong>开始时间：</strong>
			<input class="easyui-datetimebox" name="examTimeStart" data-options="
			required:true,
			showSeconds:false" 
			/>
			
		</p>	
		<p>
			<strong>结束时间：</strong>
			<input class="easyui-datetimebox" name="examTimeStop" data-options="
			required:true,
			showSeconds:false" 
			/>
			
		</p>
		<p>
			<strong>考试教室：</strong>
			<input type="text" name="examClassroom" class="easyui-textbox" data-options="
			required:true"/>
		</p>
		<p>
			<strong>试卷名称：</strong>
			<input id="examPaperNameUpdate" name="examPaperName"/>
		</p>
		<p>
			<strong>接收人员：</strong>
			<input id="examPlanToUserUpdate" name="examPlanToUser"/>
		</p>
		<p>
			<strong>接收班级：</strong>
			<input id="examPlanToClassUpdate" name="examPlanToClass"/>
		</p>
		<p>
			<strong>状&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;态：</strong>
			<select class="easyui-combobox" name="examPlanState" style="width:150px" data-options="editable:false">
				<option value="1">启用</option>
				<option value="2">待启用</option>
			</select>
		</p>
		<p>
			<strong>备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注：</strong>
			<input class="easyui-textbox" name="examPlanMemo" style="width:150px" data-options="multiline:true"/>
		</p>
	</form>
</div>
<div id="examPlanUpdateButtons">
	<a href="#" id="examPlanUpdateButton" onclick="examPlan.examPlanToolbar.update()" class="easyui-linkbutton" data-options="
	iconCls: 'icon-edit',
	plain: true
	">
		修改
	</a>
	<a href="#" onclick="examPlan.examPlanToolbar.hiddenUpdateDialog();" class="easyui-linkbutton" data-options="
	iconCls: 'icon-redo',
	plain: true">
		取消
	</a>
</div>
<div id="autoCreatePaperDialog" class="easyui-dialog ec-dialog" data-options="
title:'生产试卷',
buttons:'#autoCreatePaperButtons',
iconCls:'icon-edit',
plain:true,
closed: true
">
	<form id="autoCreatePaperForm" method="post">
		<p>
			<strong>开始时间：</strong>
			<input class="easyui-textbox" name="PaperName" data-options="
			required:true"
			/>
			
		</p>	
		<p>
			<strong>结束时间：</strong>
			<input class="easyui-textbox" name="courseName" data-options="
			required:true"
			/>
			
		</p>
	</form>
</div>
<div id="autoCreatePaperButtons">
	<a href="#" id="autoCreatePaperButton" onclick="examPlan.examPlanToolbar.autoCreatePaper()" class="easyui-linkbutton" data-options="
	iconCls: 'icon-edit',
	plain: true
	">
		生成
	</a>
	<a href="#" onclick="examPlan.examPlanToolbar.hiddenAutoCreatePaperDialog();" class="easyui-linkbutton" data-options="
	iconCls: 'icon-redo',
	plain: true">
		取消
	</a>
</div>
<script src="<%=request.getContextPath() %>/static/exam/scripts/exam-plan.js"></script>